const express = require("express");
let app = express();
let adminRouter = require("./adminRouter");
let indexRouter = require("./indexRouter");
app.use("./admin", adminRouter); //admin的二级路由
app.use("./index", indexRouter); //index的二级路由
app.use("./index", (req, res) => {
  //res.send("index路由")
  //自动跳转到置顶路由器地址
  res.redirect("./index/home");
});
app.listen(8989);
